home *** CD-ROM | disk | FTP | other *** search
- Path: news3.digex.net!usenet
- From: Tom Burket <burket@cpcug.org>
- Newsgroups: comp.lang.c++
- Subject: ospace STL across DLLs
- Date: Wed, 13 Mar 1996 20:05:08 -0500
- Organization: Capital PC User Group
- Message-ID: <314770C4.757C@cpcug.org>
- NNTP-Posting-Host: cpcug.org
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
-
- Is it safe to use STL collections (Object Space's STL on WinNT/95)
- across DLLs? I have heard speculation that if you create a collection in
- one DLL and pass it to another DLL, code in that DLL cannot modify the
- collection because each DLL has its own storage pool and allocator in
- OSpace's implementation. The same argument would apply to 'string'. We
- would have a serious problem in our large system if we can't pass these
- objects around and let them be manipulated freely across DLLs. We can't
- afford to have the whole system be a statically linked monolith to avoid
- the condition. Sample uses: add/delete members in a collection made in
- another DLL and make a collection in one DLL, release it in another,
- with the first example more important. Am I confused?
-